ostree-repo-static-delta-processing: initialize "modev"
authorGiuseppe Scrivano <gscrivan@redhat.com>
Mon, 23 Feb 2015 10:51:48 +0000 (11:51 +0100)
committerColin Walters <walters@verbum.org>
Mon, 23 Feb 2015 21:41:42 +0000 (16:41 -0500)
Can be gs_unref_variant'ed on an early error.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo-static-delta-processing.c

index b268fb2c22f6d73b113e151adcadd137a9474ec5..47adce398309c58639736368d2a7758dced8142d 100644 (file)
@@ -461,7 +461,7 @@ do_content_open_generic (OstreeRepo                 *repo,
                          GError                    **error)
 {
   gboolean ret = FALSE;
-  gs_unref_variant GVariant *modev;
+  gs_unref_variant GVariant *modev = NULL;
   guint64 mode_offset;
   guint64 xattr_offset;
   guint32 uid, gid, mode;